package com.ruoyi.system.api.domain;

import java.sql.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 用户工作经历对象 sys_user_work
 *
 * @author ruoyi
 * @date 2023-02-11
 */
@ApiModel("用户工作经历")
public class SysUserWork extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long workId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 工作单位 */
    @Excel(name = "工作单位")
    private String workName;

    /** 职务 */
    @Excel(name = "职务")
    private String zw;

    /** 职称 */
    @Excel(name = "职称")
    private Integer zc;
    
    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    public void setWorkId(Long workId)
    {
        this.workId = workId;
    }

    public Long getWorkId()
    {
        return workId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setWorkName(String workName)
    {
        this.workName = workName;
    }

    public String getWorkName()
    {
        return workName;
    }
    public void setZw(String zw)
    {
        this.zw = zw;
    }

    public String getZw()
    {
        return zw;
    }
    public void setZc(Integer zc)
    {
        this.zc = zc;
    }

    public Integer getZc()
    {
        return zc;
    }
    public void setStartDate(Date startDate)
    {
        this.startDate = startDate;
    }

    public Date getStartDate()
    {
        return startDate;
    }
    public void setEndDate(Date endDate)
    {
        this.endDate = endDate;
    }

    public Date getEndDate()
    {
        return endDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("workId", getWorkId())
                .append("userId", getUserId())
                .append("workName", getWorkName())
                .append("zw", getZw())
                .append("zc", getZc())
                .append("startDate", getStartDate())
                .append("endDate", getEndDate())
                .toString();
    }
}
